package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.Fnryqk;
import com.ruoyi.system.domain.FnryqkSelect;
import org.apache.ibatis.annotations.Param;

/**
 * fnryqkMapper接口
 * 
 * @author ruoyi
 * @date 2021-10-28
 */
public interface FnryqkMapper 
{
    /**
     * 查询fnryqk
     * 
     * @param id fnryqkID
     * @return fnryqk
     */
    public Fnryqk selectFnryqkById(String id);

    /**
     * 查询fnryqk
     *
     * @param userid userid
     * @param fanningtime fanningtime
     * @return fnryqk
     */
    public List<String> selectFnryqkByUserIdAndFanningtime(@Param("userid") String userid,@Param("fanningtime")  String fanningtime);


    /**
     * 查询fnryqk列表
     * 
     * @param fnryqk fnryqk
     * @return fnryqk集合
     */
    public List<Fnryqk> selectFnryqkList(Fnryqk fnryqk);

    /**
     * 新增fnryqk
     * 
     * @param fnryqk fnryqk
     * @return 结果
     */
    public int insertFnryqk(Fnryqk fnryqk);

    /**
     * 修改fnryqk
     * 
     * @param fnryqk fnryqk
     * @return 结果
     */
    public int updateFnryqk(Fnryqk fnryqk);

    /**
     * 删除fnryqk
     * 
     * @param id fnryqkID
     * @return 结果
     */
    public int deleteFnryqkById(String id);

    /**
     * 批量删除fnryqk
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteFnryqkByIds(String[] ids);

    public List<Map<String,Object>>selectCustomFnryqkList(FnryqkSelect fnryqk);

    public int updateShixiaoByUserId(@Param("userid")String userid,@Param("shijian")String shijian);

    public int updateShixiaoByUserIdAndTime(@Param("userid")String userid,@Param("chuangjiantime")String chuangjiantime);

    public Map<String,Object>selectLatestTime(@Param("userid")String userid);

    public Map<String,Object>selectChuanjianTime(@Param("userid")String userid,@Param("shijian")String shijian);

}
